package net.thxjj.mobileServer.service;

import net.thxjj.mobileServer.entity.GenieOauthBean;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;

@Component
public interface IGenieService {

    public GenieOauthBean getGenieOauthBeanCode(String code,String refresh_token); //天猫精灵通过code获取access_token
    public GenieOauthBean getGenieOauthBean(String access_token); //天猫精灵通过access_token获取user_id;
    public HashMap<String,Object> updateAccessToken(String grant_type, GenieOauthBean genieOauthBean); //天猫精灵 刷新access_token

    public HashMap<String,Object> loginOauthGenie(String username,String password,String redict_uri);

    public HashMap<String,Object> loginOauthEcho(String username,String password,String redict_uri,String state);

    public List<String> getDeviceList(long user_id);

    public long getPowerState(String deviceId);
}
